<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
	<title>模态框</title>
	<!-- Bootstrap -->
	<link href="../assets/css/bootstrap.min.css" rel="stylesheet">
	<link href="fonts/iconfont.css" rel="stylesheet">
	<link href="../assets/css/style.css" rel="stylesheet" />
	<link href="../assets/css/motai.css" rel="stylesheet" />
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		      <script src="../assets/js/html5shiv.min.js"></script>
		      <script src="../assets/js/respond.min.js"></script>
		      <![endif]-->
		  </head>

		  <body>
		  	<!--内容区域-->
		  	<div class="content">
		  		<div class="content-header col-md-12">
		  			<div class="con-header">

		  				<div class="col-md-6 col-sm-6 col-xs-6">
		  					<button type="button" class="btn btn-info btn-header" data-toggle="modal" data-target="#myModal">添加+</button>
		  				</div>
		  			</div>
		  		</div>

		  	</div>

		  	<!-- 模态框（Modal） -->
		  	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  		<div class="modal-dialog">
		  			<div class="modal-content">
		  				<div class="modal-header">
		  					<div class="zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-wujiaoxings"></i>&emsp;添加评价项</h5>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row">
		  						<!-- 里面的表单 -->
		  						<form class="form-horizontal" role="form">

		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>名&emsp;&emsp;称</label>
		  								<div class="col-sm-8">
		  									<input type="text" class="form-control" id="firstname" placeholder="请输入名字">
		  								</div>
		  							</div>

		  							<div class="form-group">
		  								<label for="lastname" class="col-sm-3 control-label"><span class="bitian">*</span>默认分类</label>
		  								<div class="col-sm-8">
		  									<select id="usertype" name="usertype" class="selectpicker show-tick form-control" data-live-search="true">
		  										<option value="0">苹果</option>
		  										<option value="1">菠萝</option>
		  										<option value="2">香蕉</option>
		  										<option value="3">火龙果</option>
		  										<option value="4">梨子</option>
		  										<option value="5">草莓</option>
		  										<option value="6">哈密瓜</option>
		  										<option value="7">椰子</option>
		  										<option value="8">猕猴桃</option>
		  										<option value="9">桃子</option>
		  									</select>
		  								</div>
		  							</div>

		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">排&emsp;&emsp;序</label>
		  								<div class="col-sm-8">
		  									<input type="text" class="form-control" id="firstname" placeholder="请输入名字">
		  								</div>
		  							</div>

		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>是否开启</label>
		  								<div class="col-sm-8">
		  									<span class="beijing">
		  										<span class="yuanquan"></span>
		  									</span>
		  									<span class="open">已开启</span>
		  									<div class="clearfix"></div>

		  								</div>
		  							</div>

		  						</form>
		  					</div>
		  				</div>
		  				<div class="modal-footer">

		  					<button type="button" class="btn save">保存</button>
		  					<button type="button" class="btn  close_motai" data-dismiss="modal">关闭</button>
		  				</div>

		  				<div class="modal-header">
		  					<div class="zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-shezhi"></i>&emsp;管理回话</h5>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row">
		  						<div class="col-sm-12">商家</div>
		  						<div class="col-sm-2 bg-color buiss_style">最高权限</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 bg-color buiss_style">最高权限</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>

		  						<div class="col-sm-2 bg-color buiss_style">最高权限</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>

		  						<div class="col-sm-2 bg-color buiss_style">最高权限</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  						<div class="col-sm-2 buiss_style">农家菜1</div>
		  					</div>
		  				</div>
		  				<div class="modal-header">
		  					<div class="zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-weixin"></i>&emsp;微信菜单维护</h5>
		  				</div>

		  				<div class="modal-body">
		  					<div class="row">
		  						<div class="col-sm-6 col-sm-offset-3">商品名称:<span>15元现金券</span></div>
		  						<div class="col-sm-6 col-sm-offset-3">积分兑换:<span>300</span></div>
		  						<div class="col-sm-6 col-sm-offset-3">商品名称:<span>卡券</span></div>
		  						<div class="col-sm-6 col-sm-offset-3">商品名称:<span>2016-11-01 12:56:29</span></div>
		  					</div>
		  				</div>

		  				<div class="modal-header">
		  					<div class="zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-icon-yxj-empty-store"></i>&emsp;门店商户设置</h5>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row">
		  						<form class="form-horizontal" role="form">
		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">门店1</label>
		  								<div class="col-sm-8">
		  									<input type="text" class="form-control" id="firstname" placeholder="请输入名字">
		  								</div>
		  							</div>
		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">门店1</label>
		  								<div class="col-sm-8">
		  									<input type="text" class="form-control" id="firstname" placeholder="请输入名字">
		  								</div>
		  							</div>
		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">门店1</label>
		  								<div class="col-sm-8">
		  									<input type="text" class="form-control" id="firstname" placeholder="请输入名字">
		  								</div>
		  							</div>
		  						</form>
		  					</div>
		  				</div>

		  				<!-- 发票状态 -->
		  				<div class="modal-header">
		  					<div class="zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-dingdan"></i>&emsp;发票状态</h5>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row">
		  						<form class="form-horizontal" role="form">

		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">发票状态</label>
		  								<div class="col-sm-2">
		  									<input type="radio" class="form-control check_input">
		  									<i class="icon iconfont icon-yuanxingweixuanzhong xuanzhong jq_use" onclick="qiehuan(this)" value="1"></i>
		  									<span class="check_input_after">已开</span>
		  									<div class="checkfix"></div>
		  								</div>
		  								<div class="col-sm-2">
		  									<input type="radio" class="form-control check_input" checked="checked">
		  									<i class="icon iconfont icon-yuanxingxuanzhongfill weixuanzhong jq_use" onclick="qiehuan(this)" vlaue="2"></i>
		  									<span class="check_input_after">未开</span>
		  									<div class="checkfix"></div>
		  								</div>
		  							</div>

		  							<div class="form-group">
		  								<label for="firstname" class="col-sm-3 control-label">发票备注</label>
		  								<div class="col-sm-8">
		  									<textarea type="text" class="form-control textarea_type" id="firstname" placeholder="消息内容"></textarea>

		  								</div>
		  							</div>

		  						</form>
		  					</div>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row">
		  						<div class="col-sm-2">
		  							菜单评价:
		  						</div>
		  						<div class="col-sm-10">

		  						</div>
		  					</div>
		  					<div class="row">
		  						<div class="col-sm-2">
		  							&emsp;&emsp;环境:
		  						</div>
		  						<div class="col-sm-10">

		  						</div>
		  					</div>
		  					<div class="row">
		  						<div class="col-sm-2">
		  							&emsp;&emsp;味道:
		  						</div>
		  						<div class="col-sm-10">

		  						</div>
		  					</div>

		  				</div>

		  			</div>
		  			<!-- /.modal-content -->
		  		</div>
		  		<!-- /.modal -->
		  	</div>

		  	<script src="../assets/js/jquery.min.js"></script>
		  	<script src="../assets/js/bootstrap.min.js"></script>
		  	<script src="../assets/js/main.js"></script>
		  	<script type="text/javascript">
			// 开启的js
			$(".yuanquan").on('click',function() {
				if ($(this).hasClass('colose-input')) {
					$(this).removeClass('colose-input');
					$(this).parent().siblings('.open').html('已开启')
					$(this).parent().removeClass('huibeijing');

				}else{
					$(this).parent().siblings('.open').html('已关闭')
					$(this).addClass('colose-input');
					$(this).parent().addClass('huibeijing');

				}
			})

			// 选中未选中的js
			function qiehuan(obj) {
				if($(obj).hasClass('icon-yuanxingweixuanzhong')) {
					$(obj).removeClass('icon-yuanxingweixuanzhong').addClass('icon-yuanxingxuanzhongfill');
					$(obj).parent().siblings().children('.jq_use').removeClass('icon-yuanxingxuanzhongfill').addClass('icon-yuanxingweixuanzhong');
					$(obj).parent().siblings().children('.jq_use').siblings('input').attr("checked", false);
					$(obj).siblings('input').attr("checked", true);
				} else {
					$(obj).removeClass('icon-yuanxingxuanzhongfill').addClass('icon-yuanxingweixuanzhong');
					$(obj).parent().siblings().children('.jq_use').removeClass('icon-yuanxingweixuanzhong').addClass('icon-yuanxingxuanzhongfill');
					$(obj).siblings('input').attr("checked", false);
					$(obj).parent().siblings().children('.jq_use').siblings('input').attr("checked", true);
				}
			}
		</script>

	</body>

	</html>